package vtc;

import com.tictactec.ta.lib.*;

public class EMA extends VectorialFunctionalUnit
{	
	EMA(String id, VtcArrayBlockingQueue inQueues[], VtcArrayBlockingQueue outQueues[], Integer n)
	{
		super(id, inQueues, outQueues, n);
	}
	
	public void functionalProcess() throws InterruptedException
	{
		MInteger outBeg = new MInteger();
		MInteger outNbElement = new MInteger();
		double [] output = new double[n_];
		talib_.ema(0, n_-1, this.data_, n_, outBeg, outNbElement, output);
		output_ = output[0];
	}
}